package swa.group22;
import java.util.Collection;

import javax.jws.WebService;

import swa2012.telco.broker.beans.Client;
import swa2012.telco.broker.beans.Message;



@WebService
public interface iProviderService {
	/**
	 * Registers a client with an ID
	 * 
	 * @param id
	 * @return Client Bean
	 */
	public Client register(String id);
	/**
	 * De-registers a client with a certain ID
	 * @param id
	 */
	public void deregister(String id);
	/**
	 * Gets a Collection of Messages for a certain client ID
	 * 
	 * @param id
	 * @return Collection of Messages
	 */
	public Collection<Message> getMessages(String id);
	/**
	 * Sends a Message object
	 * @param message
	 */
	public void sendMessage(Message message);
	/**
	 * Lists all Clients 
	 * @return
	 */
	public Collection<Client> listClients();
}
